import { BufferAttribute, BufferGeometry, Points, PointsMaterial } from "three"

const bufferGeometry = new BufferGeometry()
/**
 * 导出,lineModel能用上
 */
export const vertices = new Float32Array([
    0, 0, 0,
    50, 0, 0,
    0, 100, 0,
    0, 0, 10,
    0, 0, 100,
    50, 0, 10
])
const bufferAttributes = new BufferAttribute(vertices, 3)
// 设置顶点位置属性
bufferGeometry.attributes.position = bufferAttributes
const pointMaterial = new PointsMaterial({
    color: 0xff0000,
    size: 10
})
export const points= new Points(bufferGeometry, pointMaterial)
